package interfaces.batch.legacy.importlegacy.jenkins.service.integration;

import interfaces.batch.legacy.importlegacy.jenkins.domain.JobMessageHeaders;
import org.springframework.integration.annotation.Header;
import org.springframework.integration.annotation.ServiceActivator;

/**
 * @author Gregory Boissinot
 */
public class SkippedJobsLogger {


    @ServiceActivator
    public void log(@Header(JobMessageHeaders.HEADER_JOB_NAME) String skippedJobName) {
        System.out.println(String.format("Skipping '%s'", skippedJobName));
    }
}
